<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>分红统计</title>
  <link rel="stylesheet" href="css/normalize.css">
  <link rel="stylesheet" href="./plugins/bootstrap/css/bootstrap.css">
  <link rel="stylesheet" href="./css/main.css">
</head>
<body>
  <div class="content">
    <h5 class="content-title">股权质押</h5>
    <div class="row">
      <div class="col">
        <div class="box">
          <div class="box-header">
            <div class="header-title">分红统计</div>
            <span class="unit">（万元）</span>
          </div>
          <div class="box-body">
            <table class="table table-border table-first-highlight">
              <tbody>
                <tr>
                  <th>统计区间</th>
                  <td class="ar">2006至今</td>
                </tr>
                <tr>
                  <th>已实施现金分红</th>
                  <td class="ar">12次</td>
                </tr>
                <tr>
                  <th>累计实现净利润</th>
                  <td class="ar">1，229，343</td>
                </tr>
                <tr>
                  <th>累计现金分红</th>
                  <td class="ar">234，455</td>
                </tr>
                <tr>
                  <th>分红率</th>
                  <td class="ar">37.12</td>
                </tr>
                <tr>
                  <th>分红率</th>
                  <td class="ar">37.12</td>
                </tr>
                <tr>
                  <th>分红率</th>
                  <td class="ar">37.12</td>
                </tr>
              </tbody>
            </table>
          </div>
        </div>
      </div>
      <div class="col">
        <div class="box">
          <div class="box-header">
            <div class="header-title">质押比例走势</div>
          </div>
          <div class="box-body">
            <div class="chart" id="bar1" style="height:250px;"></div>
          </div>
        </div>
      </div>
    </div>
    <div class='row'>
      <div class="col">
       <div class="box">
        <div class="box-header">
          <div class="header-title">历年分红明细</div>
        </div>
        <div class="box-body">
          <table class="table">
            <thead>
              <tr>
                <th scope="col">公告日期</th>
                <th scope="col">股东名称</th>
                <th scope="col">质押方</th>
                <th scope="col">质押方类型</th>
                <th scope="col">质押股数（万股）</th>
                <th scope="col">质押起始日期</th>
                <th scope="col">质押结束日期</th>
              </tr>
            </thead>
            <tbody>
              <tr>
                <td class="font-gray">2020-07-21</td>
                <td>有限责任公司</td>
                <td>中国农业银行</td>
                <td class="font-gray">银行</td>
                <td class="font-gray">2300</td>
                <td class="font-gray">2021-01-01</td>
                <td class="font-gray">2021-02-01</td>
              </tr>
            </tbody>
          </table>
        </div>
       </div>
      </div>
    </div>
  </div>
  <script src="plugins/jquery/jquery.min.js"></script>
  <script src="js/echarts.js"></script>
  <script>
    $(function () {
      // 同业毛利率
      var colorList = ["#2B9DF8", '#FBB969', '#F36154', '#3EC3CE', '#B1C5D4', '#705AFC', '#4363DA', '#00E574']
      var myChart = echarts.init(document.getElementById('bar1'))
      var xData = ['2020/01', '2020/02', '2020/03', '2020/04', '2020/05', '2020/06']
      var option = {
        tooltip: {
          trigger: 'axis',
          axisPointer: {
            lineStyle: {
              width: 1,
              color: {
                type: 'linear',
                x: 0,
                y: 0,
                x2: 0,
                y2: 1,
                colorStops: [{
                  offset: 0,
                  color: '#2B9DF8' // 0% 处的颜色
                }, {
                  offset: 1,
                  color: '#2B9DF8' // 100% 处的颜色
                }],
                global: false // 缺省为 false
              }
            },
            label: {
              show: true,
              backgroundColor: '#fff',
              color: '#BDD8E9',
              borderColor: 'rgba(0,0,0,0)',
              shadowColor: 'rgba(0,0,0,0)',
              shadowOffsetY: 0
            },

          },
          backgroundColor: '#fff',
          textStyle: {
            color: '#5c6c7c'
          },
          padding: [10, 10],
          extraCssText: 'box-shadow: 1px 0 2px 0 rgba(163,163,163,0.5)'
        },
        grid: {
          left: '40',
          right: '40',
          top: '18%',
          bottom: '20%'
        },
        xAxis: [{
          type: 'category',
          data: xData,
          axisLine: { //  改变x轴颜色
            lineStyle: {
              color: '#DBDBDB 100%',
            }
          },
          axisTick: {
            show: false
          },
          axisLabel: { //  改变x轴字体颜色和大小
            textStyle: {
              color: "#dfdfdf",
              fontSize: 12
            },
          },
          splitLine: {
            show: false,
            lineStyle: {
              color: ['#DBDBDB 100%'],
              width: 1,
              type: 'solid'
            }
          },
          boundaryGap: true
        }],
        yAxis: [{
          type: 'value',
          name: '净利润（万元)',
          nameTextStyle: {
            color: "#666",
            fontSize: 12,
            lineHeight: 40,
            align: 'center'
          },
          axisTick: {
            show: false
          },
          axisLine: {
            show: false,
            lineStyle: {
              color: 'rgba(107,107,107,0.37)', //y轴颜色
            }
          },
          axisLabel: {
            formatter: '{value}',
            textStyle: {
              color: "#4d4d4d",
              fontSize: 12
            }
          },
          splitLine: {
            show: true,
            lineStyle: {
              color: ['#ecf2f2'],
              width: 1,
              type: 'solid'
            }
          }
        }, {
          name: '股利支付率（%）',
          nameTextStyle: {
            color: "#666",
            fontSize: 12,
            lineHeight: 40,
            align: 'center'
          },
          type: 'value',
          axisTick: {
            show: false
          },
          axisLine: {
            show: false,
            lineStyle: {
              color: 'rgba(107,107,107,0.37)', //y轴颜色
            }
          },
          axisLabel: {
            formatter: '{value}',
            textStyle: {
              color: "#4d4d4d",
              fontSize: 12
            }
          },
          splitLine: {
            show: true,
            lineStyle: {
              color: ['#ecf2f2'],
              width: 1,
              type: 'solid'
            }
          }
        }],
        series: [{
          "name": "",
          "type": "bar",
          "barWidth": "15",
          "data": [600, 200, 100, 240, 70, 40],
          yAxisIndex: 0,
          itemStyle: {
            normal: {
              color: new echarts.graphic.LinearGradient(0, 1, 0, 0, [{
                  offset: 0,
                  color: '#2b9ff8',
                },
                {
                  offset: 1,
                  color: '#18d4e7',
                },
              ])
            }
          }
        }, {
          name: '',
          type: 'line',
          label: {
            normal: {
              show: true,
              position: 'top'
            }
          },
          data: [1, 10, 15, 22, 38, 20],
          symbolSize: 4,
          symbol: 'circle',
          smooth: true,
          yAxisIndex: 1,
          showSymbol: true,
          itemStyle: {
            color: '#FBB969'
          },
          lineStyle: {
            width: 2,
          }
        }]
      };

      myChart.setOption(option)
      // 把echart实例追加到最外层window上
      window.top.chartsList && window.top.chartsList.push(myChart)
    })
  </script>
</body>
</html>